//
//  UserService.h
//  AILock
//
//  Created by 谭亚明 on 2020/6/23.
//  Copyright © 2020 tym. All rights reserved.
//

#import "LMJBaseRequest.h"
#import "UserModel.h"
#import "VersionModel.h"
/** 忘记密码*/
#define urlPasswordupdate  @"/password-update"

/** 登录*/
#define urlLogin  @"/login"

/** 注册*/
#define urlRegister  @"/user/register"

/*获取验证码*/
#define urlValidationcode  @"/sms/validation-code"

/*修改密码*/
#define urlUpdatepwd  @"/user/update-pwd"

/*验证验证码*/
#define urlVerificationcode  @"/sms/verification-code"

/*修改用户信息*/
#define urlUpdateuser  @"/user/update-user"

/*修改用户手机号*/
#define urlUpdateusermobil  @"/user/update-user-mobile"

/*修改游客用户*/
#define urlUpdateequipmentgroupuser @"/family-user/update-equipment-group-user"



/*退出登录*/
#define urlLogout  @"/logout"

/*获取用户*/
#define urlFinduser  @"/user/find-user"

/*无参获取用户*/
#define urlGetuser  @"/user/get-user"

/*上传图片-单张*/
#define urlImageUpload @"/image/img_upload"


/*上传图片-单张*/
#define urlFindnewversion @"/platform/find-new-version"

NS_ASSUME_NONNULL_BEGIN

@interface UserService : LMJBaseRequest

/*登录*/
-(void)getLoginWithMobile:(NSString*)mobile password:(NSString*)password completion:(void(^)(LMJBaseResponse *respon, UserModel *user))completion;

/*忘记密码*/
-(void)getUpdatePassword:(NSString*)userName validateionCode:(NSString*)code newPassword:(NSString*)password completion:(void(^)(NSError *error, LMJBaseResponse *response))completion;

/*注册*/  //channel:2 (IOS)
-(void)getResiterMobile:(NSString*)mobile password:(NSString*)password channel:(NSString*)channel regiterWay:(NSString*)registerWay validateionCode:(NSString*)code completion:(void(^)(NSError *error, LMJBaseResponse *response))completion;

/*获取验证码*/
-(void)getValidteionCode:(NSString*)mobile completion:(void(^)(NSError *error, LMJBaseResponse *response))completion;

/*修改密码*/
-(void)getUpdatepwd:(NSString*)password newPassword:(NSString*)newPassword completion:(void(^)(NSError *error, LMJBaseResponse *response))completion;

/*验证验证码*/
-(void)getVerificationCode:(NSString*)mobile  validateionCode:(NSString*)validateionCode completion:(void(^)(NSError *error, LMJBaseResponse *response))completion;

/*修改用户信息*/
-(void)getUpdateUser:(NSString*)realName sex:(NSInteger)sex nickName:(NSString*)nickName headImagUrl:(NSString*)headImage completion:(void(^)(NSError *error, LMJBaseResponse *response))completion;

/*修改用户手机号*/
-(void)getUpdateUserMobile:(NSString*)mobile validateionCode:(NSString*)code completion:(void(^)(NSError *error, LMJBaseResponse *response))completion;

/*退出登录*/
-(void)getLogoutcompletion:(void(^)(NSError *error, LMJBaseResponse *response))completion;

/*获取用户*/
-(void)getFinduser:(NSString*)mobile  completion:(void(^)(NSError *error, UserModel *response))completion;

/*无参获取用户*/
-(void)getFindusercompletion:(void(^)(NSError *error, UserModel *response))completion;


/*无参获取用户*/
-(void)getFindnewversion:(void(^)(LMJBaseResponse *error, VersionModel *response))completion;

/*修改游客用户*/
-(void)getUpdateyoukeUserUserId:(NSInteger)userId familyId:(NSInteger)familyId
nickname:(NSString*)nickname
headImgUrl:(NSString*)headImgUrl
                     completion:(void(^)(LMJBaseResponse *response))completion;
@end

NS_ASSUME_NONNULL_END
